import request from '@/utils/request'
// 获取楼宇
export const getBuildingList = () => request.get('/park/rent/building')

// 添加合同
export const addRent = (data) => request.post('/park/enterprise/rent', data)

// 获取合同列表
export const getRentList = (id) => request.get(`/park/enterprise/rent/${id}`)

// 退租
export const quitRent = (id) => request.put(`park/enterprise/rent/${id}`)

// 删除
export const delRent = (id) => request.delete(`park/enterprise/rent/${id}`)
